package com.book.service;

import com.book.dao.studentDao;
import com.book.po.Book;
import com.book.po.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class studentService {
    @Autowired
    private studentDao studentDao;

    public student login(student student) {
        return studentDao.login(student);
    }
    public student get_student(String id){
        return studentDao.get_student(id);
    }
    public List<student> selectDetail(student student){
        return studentDao.selectDetail(student);
    };

//    public List<Reader> reader_select(Reader reader) {
//        return readerDao.reader_select(reader);
//    }


//    public String reader_update(Reader reader) {
//        if (readerDao.reader_update(reader) != 0) {
//            return "修改成功";
//        } else {
//            return "修改失败";
//        }
//    }
//    public String reader_insert(Reader reader){
//        if (readerDao.reader_insert(reader) != 0) {
//            return "添加成功";
//        } else {
//            return "添加失败";
//        }
//    }
//
//    public String reader_delete(Integer readerId) {
//        if (readerDao.reader_delete(readerId) != 0) {
//            return "删除成功";
//        } else {
//            return "删除失败";
//        }
//    }


}
